#ifndef __MP_NET_PACKET_H__
#define __MP_NET_PACKET_H__

#include <string>

#include "logger.h"

class NetPacket {
public:
    NetPacket() {
        m_logger = Logger::get_instance();
    };
    virtual ~NetPacket() = default;

    //interface
    virtual std::string build() = 0;
    virtual int         parse(std::string& payload) = 0;

protected:
    Logger *m_logger;
};

#endif